import { mapState } from "vuex";
export default{
  data() {
    return{
      projectId: this.$store.state.app.selectData,
    }
  },
  created() {
    if(this.projectId){
      this.getList();
    }
  },
  watch: {
    app: {
      handler(newVal, oldVal) {
        this.projectId = newVal.selectData;
        this.getList();
      },
      deep: true,
    },
  },
  computed: {
    ...mapState(["app"]),
  },
}